package com.bw.service;

import com.bw.dao.GmallDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
//业务层成功注入数据层
@Service
public class GmallServiceImp implements GmallService {
//注入数据层
    @Autowired
    GmallDao gmallDao;
    //按照第二大类交易额 sql 饼图
    @Override
    public List<Map> drjer(String nowDate) {
        return gmallDao.drjer(nowDate);
    }
    //按品牌交易额排名 sql  柱状图
    @Override
    public List<Map> ppjye(String nowDate) {
        return gmallDao.ppjye(nowDate);
    }
    //总成交金额的存储过程 sql  翻牌器
    @Override
    public List<Map> sumTotal(String nowDate) {
        return gmallDao.sumTotal(nowDate);
    }
    //按SPU 分组订单金额 sql  轮播图
    @Override
    public List<Map> spufz(String nowDate) {
        return gmallDao.spufz(nowDate);
    }
}
